package com.htht.smartschool.model.message;

import java.util.List;

import com.htht.smartschool.common.model.Entity;

/**
 * TMessage entity. @author MyEclipse Persistence Tools
 */

public class TMessage extends Entity implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/***0.运维通告1.新闻公告2.学校通知3.到离校通知4.班内通知5.老师消息***/
	private String type;
	/***用户编码**/
	private String sendcode;
	/***用户编码**/
	private String receivecode;
	private String content;
	private Long idatetime;
	private String name;
	private Integer sendType;
	private Integer channel;
	private List<Long> to;
	private List<Long> cellphones;
	private Long from;
	private String model;
	private Long mesid;
	private String flag;//1.离线,0.历史记录
	private String appid;
	private String cmpptype;
	private String schoolcode;
	// Constructors

	/** default constructor */
	public TMessage() {
	}

	/** full constructor */
	public TMessage(String type, String sendcode, String receivecode,
			String content, Long idatetime) {
		this.type = type;
		this.sendcode = sendcode;
		this.receivecode = receivecode;
		this.content = content;
		this.idatetime = idatetime;
	}

	// Property accessors


	public String getType() {
		return this.type;
	}

	public String getSchoolcode() {
		return schoolcode;
	}

	public void setSchoolcode(String schoolcode) {
		this.schoolcode = schoolcode;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSendcode() {
		return this.sendcode;
	}

	public void setSendcode(String sendcode) {
		this.sendcode = sendcode;
	}

	public String getReceivecode() {
		return this.receivecode;
	}

	public void setReceivecode(String receivecode) {
		this.receivecode = receivecode;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getIdatetime() {
		return this.idatetime;
	}

	public void setIdatetime(Long idatetime) {
		this.idatetime = idatetime;
	}

	public Integer getChannel() {
		return channel;
	}

	public void setChannel(Integer channel) {
		this.channel = channel;
	}

	public List<Long> getTo() {
		return to;
	}

	public void setTo(List<Long> to) {
		this.to = to;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public Long getFrom() {
		return from;
	}

	public void setFrom(Long from) {
		this.from = from;
	}

	public Long getMesid() {
		return mesid;
	}

	public void setMesid(Long mesid) {
		this.mesid = mesid;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getCmpptype() {
		return cmpptype;
	}

	public void setCmpptype(String cmpptype) {
		this.cmpptype = cmpptype;
	}

	public List<Long> getCellphones() {
		return cellphones;
	}

	public void setCellphones(List<Long> cellphones) {
		this.cellphones = cellphones;
	}

}